-- GENERATED SPELL FOR [Moonrest Highborne] --


function spell0_26455(pUnit, Event) --@Shadow Word: Death,n/a--
pUnit:FullCastSpellOnTarget(51818,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26455', 642, 1)
end

function Sorts_26455(pUnit, Event)
local choix_sorts_26455 = math.random(0, 0)
if choix_sorts_26455 == 0 then
pUnit:RegisterEvent('spell0_26455', 1, 1)
end
end

function mob26455_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26455', math.random(1500, 3000), 1)
end

function mob26455_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26455_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26455_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26455, 1, 'mob26455_Action')
RegisterUnitEvent(26455, 2, 'mob26455_Leave')
RegisterUnitEvent(26455, 3, 'mob26455_Kill')
RegisterUnitEvent(26455, 4, 'mob26455_Die')
